﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<title>Type Loading</title>
		
		<link href="../Common/Styles/qunit.css" type="text/css" rel="stylesheet" />
		
		<script src="../Common/Scripts/JQuery/jquery-1.3.2.js" type="text/javascript"></script>
		<script src="../Common/Scripts/QUnit/qunit.js" type="text/javascript"></script>
		<script src="../Common/Scripts/Microsoft/MicrosoftAjax.js" type="text/javascript"></script>
		<script src="../Common/Scripts/ExoWeb/exoweb.js" type="text/javascript"></script>
		<script src="../Common/Scripts/QUnit/qunit.ext.js" type="text/javascript"></script>
		<script src="../Common/Scripts/ExoWeb/exoweb.model.js" type="text/javascript"></script>
		<script src="../Common/Scripts/ExoWeb/exoweb.mapper.js" type="text/javascript"></script>
		<script src="../Common/Scripts/ExoWeb/exoweb.mock.js" type="text/javascript"></script>
		<script src="../Common/Scripts/mock-driver.js" type="text/javascript"></script>
		<script src="ChangeSet.js" type="text/javascript"></script>
		
		<script type="text/javascript">
			//ExoWeb.trace.flags.sync = true;
			//ExoWeb.trace.flags.mocks = true;
			ExoWeb.Mock.objectProviderDelay = 10;
			ExoWeb.Mock.typeProviderDelay = 10;
			ExoWeb.Mock.roundtripProviderDelay = 10;

			// HACK: signal behavior that temporarily releases control conflicts with synchronous nature of tests
			/*var impl = ExoWeb.Signal.prototype._doCallback;
			ExoWeb.Signal.prototype._doCallback = function Signal$_doCallback(name, thisPtr, callback, args, executeImmediately) {
				impl.call(this, name, thisPtr, callback, args, true);
			};*/

			var context = ExoWeb.context({ types: [ { from: "Driver" } ] });

			setupTest("test1", { description: "Load sub type with condition type that references base type.", expect: 1 }, function() {
				
			});
	
			timeoutTests(5000);

			context.ready(function() {
				executeTest("test1");
			});
		</script>
	</head>
	<body xmlns:sys="javascript:Sys" xmlns:dataview="javascript:Sys.UI.DataView" sys:activate="*">
		
		<!-- QUnit Display -->
		<h1 id="qunit-header">Test Results:</h1>
		<h2 id="qunit-banner"></h2>
		<h2 id="qunit-userAgent"></h2>
		<ol id="qunit-tests"></ol>
	</body>
</html>
